// 合并 k 个升序链表
/**
 * Definition for singly-linked list.
 * function ListNode(val, next) {
 *     this.val = (val===undefined ? 0 : val)
 *     this.next = (next===undefined ? null : next)
 * }
 */
/**
 * @param {ListNode[]} lists
 * @return {ListNode}
 */
var mergeKLists = function (lists) {
  console.log(...lists.map(item => item.val));

};


let lists = [[1, 4, 5], [1, 3, 4], [2, 6]]
console.log(mergeKLists(lists));
